﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GameLogic.Objects
{
    class Brick : GameObject
    {

        public Brick(int x, int y)
        {
            Position = new Rectangle(x, y, Constants.CELL_SIZE, Constants.CELL_SIZE);
            HitPoints = Constants.HITS_FOR_BRICK;
        }

        public override void Draw(Graphics graphics)
        {
            var brickPict = GetCurrentImage();
            DrawByPicture(graphics, brickPict, Position);
        }

        public override Image GetCurrentImage()
        {
          return PictureManager.GetImage(ImageKind.BRICK);
        }
    }
}
